<!--{template header}-->
<div class="wrap clearfix">

<div class="site-ms__right user_nav">
{template seller_menu}
</div>
<div class="site-ms__left">
<div class="t_area_out">
<div class="t_area_in">
<div class="nleftL">
{~ui('isearcher')->load('seller.product_order')}
<table class="tab_list">
<tr>
<th width="10%">订单编号</th>
<th width="16%">商品信息</th>
<th width="10%">订单金额</th>
<th width="10%">下单会员</th>
<th width="13%">下单时间</th>
<th width="9%">订单状态</th>
<th width="9%">处理进程</th>
<th width="10%">支付方式</th>
<th width="13%">支付时间</th>
</tr>
{loop $orders $i $order}
<tr>
<td style="text-align:center;">
{$order['orderid']}
{if $order['pay'] == 1}
{if $order['product']['type'] == 'ticket'}
<br><a href="?mod=seller&code=ticket&op=list&search=wd:{$order['orderid']}&ssrc=order_id&sstr={$order['orderid']}">{TUANGOU_STR}券</a>
{else}
<br><a href="?mod=seller&code=delivery&op=list&search=wd:{$order['orderid']}&ssrc=order_id&sstr={$order['orderid']}">发货单</a>
{/if}
{/if}
</td>
<td>{$order['product']['flag']}<br>单价：&yen;{$order['productprice']}&nbsp;数量：{$order['productnum']}</td>
<td>&yen;{$order['totalprice']}元
{if $order['expressprice']>0}<br>(含运费:&yen;$order['expressprice']元){/if}
</td>
<td>
{echo user($order['userid'])->get('name')}
</td>
<td>{echo date('Y-m-d H:i:s', $order['buytime'])}</td>
<td>
{echo logic('order')->STA_Name($order['status'])}
</td>
<td>
{echo logic('order')->PROC_Name($order['process'])}
</td>
<td>
{if $order['paytype'] > 0}
{eval $payment = logic('pay')->SrcOne($order['paytype'])}
{$payment['name']}
{else}
未支付
{/if}
</td>
<td>
{if $order['pay'] == 1}
{echo date('Y-m-d H:i:s', $order['paytime'])}
{else}
未支付
{/if}
</td>
</tr>
{if $order['attrs']}
<tr>
<td style="border-top:none;text-align:center;">属性规格</td>
<td colspan="8">
{loop $order['attrs']['dsp'] $dsp}
{$dsp['name']} - &yen;{$dsp['price']}元<br/>
{/loop}
</td>
</tr>
{/if}
{if $order['extmsg']}
<tr>
<td style="text-align:right;">备注</td>
<td colspan="8">
{$order['extmsg']}
</td>
</tr>
{/if}
{/loop}
<tr>
<td colspan="9" style="border-bottom:1px solid #ccc;">
{~page_moyo()}
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<!--{template footer}-->